﻿using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace Smugmug
{
    [JsonObject]
    public class Community : IIdentifiable<int>
    {
        [XmlAttribute("id"), JsonProperty("id")]
        public int Id { get; set; }

        [XmlAttribute]
        public string Name { get; set; }
    }

    [XmlType("Communities"), JsonObject]
    public class CommunityCollection : List<Community>
    {
    }
}